<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="s_produce" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 产品信息 </span>
      </div>
      <el-table :data="s_produce">
        <el-table-column label="产品图片" prop="file_fileid">
          <template slot-scope="scope">
            <img src='images/icons/talent/nopic.jpg' />
          </template>
        </el-table-column>
      </el-table>
      <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">加入购物车</el-button>
      <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">立刻购买</el-button>
      <el-button @click="gotoPage('/crm/sale/EShop?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'NetShopList',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_produce: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/crm/sale/NetShopList/netShopList?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
